import  axios from  'axios'

export default class Phyment {
    static phyment = null

    static getInstance(){
        if(this.phyment == null){
            this.phyment = new Phyment()
        }
        return this.phyment
    }

    pay(mfyPaymentEntity){
        return axios.post(`http://localhost/payment/alipay`,mfyPaymentEntity)
    }

    up(){
        return axios.get(`http://localhost/payment/success`)
    }


}
